﻿package domino 
{

	import flash.events.Event;
	
	/**
	 * ...
	 * @author sergiy
	 */
	public class eventLoadLevel extends Event 
	{
		public static const LOAD_LEVEL:String = "loadLevel";
		public static const CLEAR_LEVEL:String = "clearLevel";
		public static const DELETE_DOMIN:String = "dominDelete";
		public static const DELETE_COIN_BLACK:String = "dominCoinBlack";
		
		public static const DELETE_COIN:String = "dominCoin";
		public static const END_LEVEL:String = "endLevel";
		
		
	//	this.
		public var data:*;
		
		public function eventLoadLevel(type:String, customData:*= null, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
		//data=_data;
			super(type, bubbles, cancelable);
			this.data = customData;
		} 
		
		public override function clone():Event 
		{ 
			return new eventLoadLevel(type,data, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("eventLoadLevel", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}